import shutil
import gzip
file='1_gzip_压缩_解压文件.py'
with open(file,'rb') as f_src:
    with gzip.open(f'{file}_bak.gz','wb',) as f_gz:
        shutil.copyfileobj(f_src,f_gz)
